#pragma once
#include "Cities.h"
#include "CitiesView.h"
#include "afxwin.h"

// CCitiesDlg dialog
class CCitiesDlg : public CDialog
{
	DECLARE_DYNAMIC(CCitiesDlg)

public:
	CCitiesDlg(const CCities &oCities, eMenuCmd eCmd, CWnd* pParent = NULL);	 
	virtual ~CCitiesDlg();

	// Dialog Data
	enum { IDD = IDD_CITIES_EDIT };
protected:
	virtual void DoDataExchange(CDataExchange* pDX);		// DDX/DDV support

	DECLARE_MESSAGE_MAP()
private:
	eMenuCmd m_eMenuCmd;
	CCities m_oCity;
	CEdit m_oName;
	CEdit m_oArea;
	CEdit m_oCode;
public:
	afx_msg void OnBnClickedCityEditUpdate();
	virtual BOOL OnInitDialog();
	CCities	 GetCityData(){return m_oCity;};
	afx_msg void OnBnClickedOk();
};
